package com.xuecheng.client.sdk.config;


import com.xuecheng.client.sdk.client.XueChengClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
/**
 *
 */
@Data
@ComponentScan
@Configuration
@ConfigurationProperties("xuecheng.client")
public class XueChengClientConfig {

    private String accessKey;

    private String secretKey;

    private String gatewayHost;

    @Bean
    public XueChengClient xueChengClient() {
        return new XueChengClient(accessKey, secretKey,gatewayHost);
    }

}
